<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:51:"/var/www/fish/application/crm/view/cdr/listCDR.html";i:1516765309;}*/ ?>
<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>小鱼ADMIN</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/public/static/css/font.css">
    <link rel="stylesheet" href="/public/static/css/bgadmin.css">
    <script type="text/javascript" src="/public/static/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <style>
  .layui-input{height:30px;}
  .layui-form-label{line-height: 16px;}
  </style>
  <body>
    
    <div class="bg-body">
      <div class="layui-row" id="search_id">
        <form class="layui-form ">
			<div class="layui-form-item">
				<div class="layui-inline">
				  <label class="layui-form-label">主叫：</label>
				  <div class="layui-input-inline">
					<input type="text" class="layui-input" id="src" name="src">
				  </div>
				</div>
                <div class="layui-inline">
                  <label class="layui-form-label">被叫：</label>
                  <div class="layui-input-inline">
                    <input type="text" class="layui-input" id="dst" name="dst">
                  </div>
                </div>
				<div class="layui-inline">
				  <label class="layui-form-label">工号：</label>
				  <div class="layui-input-inline">
					<select name="workno" id="workno" lay-verify="" autocomplete="off" class="layui-input" lay-search="">
						<option value="">直接选择或搜索选择</option>  <!--请选择-->
						<?php if(is_array($arrUsers) || $arrUsers instanceof \think\Collection || $arrUsers instanceof \think\Paginator): $i = 0; $__LIST__ = $arrUsers;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
						<option value="<?php echo $vo['username']; ?>"><?php echo $vo['cn_name']; ?>   ( <?php echo $vo['username']; ?> ) </option>
						<?php endforeach; endif; else: echo "" ;endif; ?>
					</select>
				  </div>
				</div>
				<div class="layui-inline">
                  <label class="layui-form-label">所属部门：</label>
                  <div class="layui-input-inline">
                    <select name="dept_id" id="dept_id" lay-verify="" autocomplete="off" class="layui-input" lay-search="">
                        <option value="">直接选择或搜索选择</option>
                        <option value="0">顶级部门</option>
                        <?php echo $options; ?>
                    </select>
                  </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label">呼叫类型：</label>
                  <div class="layui-input-inline">
                    <select name="calltype" id="calltype" lay-verify="" autocomplete="off" class="layui-input">
                        <option value="">全部</option>  <!--请选择-->
                        <option value="IN">呼入</option>  <!--请选择-->
                        <option value="OUT">呼出</option>  <!--请选择-->
                        <option value="AUTOCALL">自动外呼</option>  <!--请选择-->
                        <option value="PREVIEW">预览式外呼</option>  <!--请选择-->
                    </select>
                  </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label">接听状态：</label>
                  <div class="layui-input-inline">
                    <select name="disposition" id="disposition" lay-verify="" autocomplete="off" class="layui-input">
                        <option value="">全部任务</option>  <!--请选择-->
                        <option value="ANSWERED">已接听</option>  <!--请选择-->
                        <option value="NO ANSWER">未接听</option>  <!--请选择-->
                    </select>
                  </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label">接听方式：</label>
                  <div class="layui-input-inline">
                    <select name="lastapp" id="lastapp" lay-verify="" autocomplete="off" class="layui-input">
                        <option value="">全部任务</option>  <!--请选择-->
                        <option value="Dial">坐席</option>  <!--请选择-->
                        <option value="Queue">队列</option>  <!--请选择-->
                        <option value="Playback">语音</option>  <!--请选择-->
                        <option value="Other">其他</option>  <!--请选择-->
                    </select>
                  </div>
                </div>
				<a class="layui-btn layui-btn-small"  style="margin-bottom: 10px;" id="search"  lay-submit="" lay-filter="search"><i class="layui-icon" >&#xe615;</i></a>
			</div>
		</form>
	  </div>

      <table class="layui-table" lay-data="{id: 'id', height: 'full-200',url:'/index.php/crm/Cdr/cdrDataList', page:true, limit:10, limits:[10,20,30,50]}" lay-filter="demo">
        <thead>
        <tr>
          <!--<th lay-data="{checkbox:true, fixed: true}"></th>-->
          <!--<th lay-data="{field:'id', align:'center', width:80}">编号</th>-->
          <th lay-data="{field:'calldate', width:160, align:'center'}">通话时间</th>
          <th lay-data="{field:'src', width:120, align:'center'}">来电ID</th>
          <th lay-data="{field:'dst', width:120, align:'center'}">被叫号码</th>
          <th lay-data="{field:'billsec', width:120, align:'center'}">通话时长</th>
          <th lay-data="{field:'workno', width:100, align:'center'}">工号</th>
          <th lay-data="{field:'username', width:100, align:'center'}">姓名</th>
		  <th lay-data="{field:'dept_name', width:100, align:'center'}">直属部门</th>
          <th lay-data="{field:'calltype', width:100, align:'center'}">呼叫类型</th>
		  <th lay-data="{field:'disposition', width:100, align:'center'}">接听状态</th>
		  <th lay-data="{field:'lastapp', width:100, align:'center'}">接听方式</th>
          <th lay-data="{fixed: 'right', width:120, align:'center', toolbar: '#barDemo'}">操作</th>
        </tr>
        </thead>
      </table>
       
      <script type="text/html" id="barDemo">
		<a class="layui-btn layui-btn-normal layui-btn-mini" lay-event="edit">播放</a>
	  </script>
    </div>
</body>

<script>

</script>
<script type="text/javascript" src="/public/static/crm/js/cdr/listCDR.js"></script>

</html>